package io.bdmc.modules.sys.service;

import io.bdmc.modules.sys.entity.SysUserToken;

import com.baomidou.mybatisplus.extension.service.IService;

import io.bdmc.common.utils.R;

/**
 * 用户Token
 * 
 * @author huang lu
 * @email hlkyo@qq.com
 * @date 2017-03-23 15:22:07
 */
public interface SysUserTokenService extends IService<SysUserToken> {

	SysUserToken queryByUserId(Long userId);

	SysUserToken queryByToken(String token);
	


	/**
	 * 生成token
	 * @param userId  用户ID
	 */
	R createToken(long userId);

}
